package com.elder.business.service;

import java.util.List;

import com.alibaba.fastjson2.JSONObject;
import com.elder.business.domain.RetreatRecords;
import com.elder.business.domain.RetreatRecordsVO;
import com.elder.common.core.page.TableDataInfo;

/**
 * 老人退住Service接口
 * 
 * @author elder
 * @date 2023-11-26
 */
public interface IRetreatRecordsService 
{
    /**
     * 查询老人退住
     * 
     * @param id 老人退住主键
     * @return 老人退住
     */
    public JSONObject selectRetreatRecordsById(Long id);

    /**
     * 查询老人退住列表
     * 
     * @param retreatRecords 老人退住
     * @return 老人退住集合
     */
    public List<RetreatRecords> selectRetreatRecordsList(RetreatRecords retreatRecords);

    /**
     * 新增老人退住
     * 
     * @param retreatRecords 老人退住
     * @return 结果
     */
    public int insertRetreatRecords(RetreatRecordsVO retreatRecords);

    /**
     * 修改老人退住
     * 
     * @param retreatRecords 老人退住
     * @return 结果
     */
    public int updateRetreatRecords(RetreatRecordsVO retreatRecords);

    /**
     * 批量删除老人退住
     * 
     * @param ids 需要删除的老人退住主键集合
     * @return 结果
     */
    public int deleteRetreatRecordsByIds(Long[] ids);

    /**
     * 删除老人退住信息
     * 
     * @param id 老人退住主键
     * @return 结果
     */
    public int deleteRetreatRecordsById(Long id);

    TableDataInfo getRetreatRecordsList(String elderName, String startTime, String endTime, String applyStatus,Integer pageNum, Integer pageSize);

    int delRetreatRecordsByIds(Long[] ids);

    int updateEgressRegisterApprove(Long id,Long elderId, String applyStatus);
}
